package com.naiterui.ehp.bs.cms.modules.pharmacy.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.naiterui.ehp.bs.cms.common.constants.DsName;
import com.naiterui.ehp.bs.cms.modules.pharmacy.entity.Warehouse;
import com.naiterui.ehp.bs.cms.modules.pharmacy.vo.WarehouseSelectVO;
import com.naiterui.ehp.bs.cms.modules.pharmacy.vo.WarehouseVO;

@DS(DsName.EHP)
public interface WarehouseMapper extends BaseMapper<Warehouse> {

    List<WarehouseSelectVO> getSelectList();

    Page<WarehouseVO> getPage(@Param("page") IPage<WarehouseVO> page, @Param("ew") Wrapper<WarehouseVO> entityWrapper);
}
